From: Jonas Dreßler Date: Wed, 16 Feb 2022 19:02:48 +0000 (+0100) Subject: overviewControls: Factor in margin-bottom for dash startup animation X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~516^2^2~80 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b9abf6fcf5f4676e69f9ade17c0b3797d19a1986;p=gnome-shell.git overviewControls: Factor in margin-bottom for dash startup animation We set a margin-bottom on the dash to give it some margin towards the monitor edge, we need to factor in this margin when moving it outside of the monitor for our animation. Part-of: --- diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index 2344ad8eb..d3df21ea0 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -842,7 +842,7 @@ class ControlsManager extends St.Widget { // The Dash rises from the bottom. This is the last animation to finish, // so run the callback there. - this.dash.translation_y = this.dash.height; + this.dash.translation_y = this.dash.height + this.dash.margin_bottom; this.dash.ease({ translation_y: 0, delay: STARTUP_ANIMATION_TIME,